.foxui-badge {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.foxui-badge-core {
    background-color: $--color-primary;
    border-radius: 10px;
    color: #fff;
    display: inline-block;
    font-size: 12px;
    height: 18px;
    line-height: 18px;
    padding: 0 6px;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #fff;
    position: absolute;
    top: 0;
    right: 10px;
    transform: translateY(-50%) translateX(100%);
    box-sizing: content-box;
}

.foxui-badge-primary {
    .foxui-badge-core {
        background-color: $--color-primary;
    }
}

.foxui-badge-info {
    .foxui-badge-core {
        background-color: $--color-info;
    }
}

.foxui-badge-warning {
    .foxui-badge-core {
        background-color: $--color-warning;
    }
}

.foxui-badge-danger {
    .foxui-badge-core {
        background-color: $--color-danger;
    }
}

.foxui-badge-success {
    .foxui-badge-core {
        background-color: $--color-success;
    }
}

.is-dot {
    .foxui-badge-core {
        height: 10px;
        width: 10px;
        padding: 0;
        border-radius: 50%;
        right: 5px;
    }
}
